﻿using Microsoft.CodeAnalysis;

namespace UIOC.CodeAnalysis.Diagnostics;

internal static class InternalAttributeAccessDiagnostic {

    public const string DiagnosticId = "UIOC0017";

    private const string Title = "'[Internal]' 权限分析";
    private const string MessageFormat = "该成员由代码生成器自动生成，禁止用户调用";
    private const string Description = "检测标注了 '[Internal]' 的成员被用户代码调用";
    private const string Category = "Usage";

    public static readonly DiagnosticDescriptor Rule = new(
        DiagnosticId,
        Title,
        MessageFormat,
        Category,
        DiagnosticSeverity.Error,
        isEnabledByDefault: true,
        description: Description
    );
}
